<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="leagal_aid.bean.*,java.util.*,java.io.*" %>
<%
request.setCharacterEncoding("utf-8");

String content = request.getParameter("data");
String picture = request.getParameter("picture");
String category = request.getParameter("category");
int homepage = Integer.parseInt(request.getParameter("homepage"));
String source = request.getParameter("source");
String author = request.getParameter("author");
String txtDate = request.getParameter("txtDate");
String title = request.getParameter("title");
int id = Integer.parseInt(request.getParameter("id"));
System.out.println(txtDate);
System.out.print("doupdate.jsp : id:"+id+"+content :"+content +
		"+picture :"+picture+"+txtDate:"+txtDate+"titile:"+title+"author:"+author+"source:"+source+"homepage:"+homepage+"category:"+category);
System.out.println("content" + content);
LeagalBean leagalBean = new LeagalBean();
    if(leagalBean.DoUpdata(category,content,homepage,source,author,picture,txtDate,title,id)){
    	
	}else{
		response.setCharacterEncoding("utf-8");
		PrintWriter pout = response.getWriter();
		pout.print("<script>alert('不成功'); window.location='../news_.jsp' </script>");
		pout.flush();
		pout.close();
		//response.sendRedirect("login.html");
	};

%>